<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'user_data.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<link rel="stylesheet" type="text/css" href="./bamcss/bam.css">
<script type="text/javascript" src="./plugin/jqueryqrcode/src/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// 	$.ajax({
// 		type:"post",
// 		url:"<%=basePath%>datarecord/dealtwin_dynainfoStatis.action",
// 		data:{
// 			startTime:"",
// 			endTime:"",
// 			longtime:-1,
// 			money:-1,
// 			areaid:"",
// 		},
// 		dataType:"json",
// 		async:false,
// 		success:function(data){
// 			var obj = eval("("+data+")");
// 			var trs=[];  
// 			var tds =[];
// 			var trDom;
// 			console.log(obj);
// 			if(obj.code==1){
// 				trDom = $('<tr></tr>');  
// 				$('<td class="t">总用户'+obj.registNum+'</td>').appendTo(trDom);
// 				$('<td class="t">登录用户:'+obj.loginNum+'</td>').appendTo(trDom);
// 				$('<td class="t">押金（人数）:'+obj.cashPledge.memberNumCount+'</td>').appendTo(trDom);
// 				$('<td class="t">押金（总额）:'+obj.cashPledge.moneyCount+'</td>').appendTo(trDom);
// 				$('<td class="t">充值（人数）:'+obj.recharge.memberNumCount+'</td>').appendTo(trDom);
// 				$('<td class="t">充值（总额）:'+obj.recharge.cashPledge+'</td>').appendTo(trDom);
// 				$('<td class="t">退押金人数:'+obj.depositRefund.memberNumCount+'</td>').appendTo(trDom); 
// 				$('<td class="t">上网人数:'+obj.netNumCount+'</td>').appendTo(trDom); 
// 				$('<td class="t">上网总时长'+obj.netTimeCount+'</td>').appendTo(trDom); 
// 				trs.push(trDom);
//            		for(var j=0;j<trs.length;j++){  
//                 	$(trs[j]).appendTo($('#show'));  
//            		}
// 			}else{
// 				console.log(JSON.stringify(data));
// 			}
// 		},
// 		error:function(msg){
// 	   		alert("系统出错误,请联系技术人员");
// 		}
// 	});
});
</script>
<style type="text/css">
.layer_zhuti iframe {
	height: 95%;
}

.layer_zhuti #td1 {
	width: 20%
}

.table {
	font-size: 12px;
	width: 50%;
	color: #778899;
	background-color: #DCDCDC;
	margin-top: -90px;
	height: 80%;
}
.layer_seekTime {
    float: right;
    width: 38%;
    height: 90%;
    margin: 2.7% -143px 1px 0;
}
</style>

</head>

  <body>
   		<div class="layer_head">
   			<div class="layer_title">用户管理</div>
   			<div class="layer_seek">
   					<input id="sousuo" type="text" value="请输入关键词" onFocus="if(value==defaultValue){value='';this.style.color='#000'}" 
   					onBlur="if(!value){value=defaultValue;this.style.color='#999'}" style="color:#999999" 
   					onkeypress="if (event.keyCode == 13)mohusousuo();"/>
	   			<a href="javascript:void(0)" onclick="mohusousuo()"><div class="layer_search"></div></a>
   			</div>
		<div style="clear: both;"></div>
		<table class="table" id="show">
		</table>
   		<hr>
   		</div>
   		
   		<div class="layer_zhuti">
   			<table>
   				<tr class="tr1">
   					<td style="width:25%;">用户id</td>
	   				<td style="width:25%;">用户昵称</td>
	   				<td style="width:25%;">用户手机号</td>
	   				<td style="width:25%;">用户牛号</td>
   				</tr>
   			</table>
   			<iframe  id="iframe" class ="layer_iframe" name="wrap_iframe" src="<%=basePath %>bamjsp/ssidStatus/details/table_details.jsp" frameborder=0 ></iframe>
   		</div>
   		<div class="layer_bottom">
			<span class="span1" >**共 <span style="font-size: 14px;color: black;" id="span1"></span> 条数据 / 共
			<span style="font-size: 14px;color: black;" id="span2"></span>&nbsp;页 / 当前第
			<span style="font-size: 14px;color: black;" id="span3">1</span>&nbsp;页***</span> 
			
			<span style="float: right;"><input id="tiao"style="width: 50px" type="number" min="1"/><button style="width: 50px" onclick="tiaozhuan()" >go</button></span>
			<button style="margin-right: 40px" onclick="moye()">末 页</button>
			<button style="margin-right: 20px" onclick="xiaye()">下页</button>
			<button style="margin-right: 20px" onclick="shangye()">上 页</button>
			<button style="margin-right: 20px" onclick="shouye()">首页</button>
			<div style="clear: both;"></div>
		</div>
		<input type="hidden" >
  </body>

<script type="text/javascript">
	var pageNum=1;
	function mohusousuo(){
		var sousuo = $("#sousuo").val();
		if(sousuo!="请输入关键词"){
			wrap_iframe.window.ssajax(sousuo);
		}else{
			alert("请输入关键词");
		}
	}
	
	function shouye() {
		pageNum = 1;
		if (pageNum < 0) {
			alert("当前已经是首页！");
		} else {
			wrap_iframe.window.ssajax();
		}
	}
	
	function shangye() {
		pageNum -= 1;
		if (pageNum == 0 || pageNum < 0) {
			alert("当前已经是首页！");
			pageNum = 1;
		} else {
			wrap_iframe.window.ssajax("", pageNum);
		}
	}
	
	function xiaye() {
		pageNum += 1;
		// alert("父页面"+page);
		wrap_iframe.window.ssajax("", pageNum);
	}
	
	function moye() {
		var num = $("#span2").text();
		if(pageNum==num){
			alert("当前已是最后一页");
		}else{
			wrap_iframe.window.ssajax("", num);
		}
	}
	
	function showDiv(divtype, url, title) {
		window.parent.showDiv(divtype, url, title);
	}
</script>
</html>
